﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using BatallaNavalgo;

namespace InterfazGrafica
{
    public class CasillaGrafica
    {
        private Rectangle rect;
        private Casilla casilla;

        public CasillaGrafica(Rectangle rect, Casilla casilla)
        {
            this.rect = rect;
            this.casilla = casilla;
        }

        public Rectangle Rect
        {
            get { return this.rect; }
        }

        public bool InteractuóConElCursor(Point pt)
        {
            if (this.rect.Contains(pt))
                return true;
            return false;
        }

        public bool TieneDisparo()
        {
            if (this.casilla.TieneDisparo())
                return true;
            return false;
        }
    }
}
